package com.newway.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.newway.wechat.entity.OrgEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrgMapper extends BaseMapper<OrgEntity> {
    //@Select("select o.id,o.org_name,o.creator,o.remarks,o.avatar from org o inner join org_user ou on o.id = ou.org_id where ou.user_id= #{userId}")
    List<OrgEntity> getOrgList(@Param("param") OrgEntity param);

    long getOrgListCount(@Param("param") OrgEntity requestDto);
}
